package com.loong.user.business;

import com.loong.common.mybatis.business.AbstractBusiness;
import com.loong.user.mapper.ManageResourceMapper;
import com.loong.user.model.ManageResource;
import com.loong.user.model.dto.ManageResourceDto;
import com.loong.user.result.ManageResourceResult;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-10-16 11:38
 */
@Repository
public class ManageResourceBusiness extends AbstractBusiness<ManageResource> {
    @Resource
    ManageResourceMapper manageResourceMapper;
    public List<ManageResourceDto> findResourceByRoleId(Long roleId){
       return manageResourceMapper.findResourceByRoleId(roleId);
    };

}
